package com.situ.ftbserver.service;

import com.situ.ftbserver.model.Reserve;
import com.situ.ftbserver.model.search.ReserveSearchBean;
import com.situ.ftbserver.util.PaginateInfo;

import java.util.List;
import java.util.Map;

public interface ReserveService {
    List<Reserve> findByCourseId(Integer[] ids);

    List<Reserve> findByMemberId(Integer[] ids);

    Reserve findByCourseAndMember(Integer courseId, Integer memberId);
    List<Reserve> findAll(PaginateInfo pi, ReserveSearchBean rsb);

    int delete(Integer[] ids);

    boolean save(Reserve reserve);

    boolean update(Reserve reserve);

    List<Map<String,Integer>> getCourseReserveCount();

    Reserve findById(int id);
}
